MediaDomain

class MediaDomain : Domain

This domain allows detailed inspection of media elements

This API is marked as experimental in protocol definition and can change in the future.

Functions

description
Link copied to clipboard
fun description(): String
Returns domain description.
disable
Link copied to clipboard
fun disable(): Single<RequestResponseFrame>
Disables the Media domain.
enable
Link copied to clipboard
fun enable(): Single<RequestResponseFrame>
Enables the Media domain
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
getDependencies
Link copied to clipboard
open fun getDependencies(): List<Domain>
Returns domain dependencies.
name
Link copied to clipboard
fun name(): String
Returns domain name.
playerErrorsRaised
Link copied to clipboard
fun playerErrorsRaised(): Flowable<PlayerErrorsRaisedEvent>
Send a list of any errors that need to be delivered.
playerEventsAdded
Link copied to clipboard
fun playerEventsAdded(): Flowable<PlayerEventsAddedEvent>
Send events as a list, allowing them to be batched on the browser for less congestion.
playerMessagesLogged
Link copied to clipboard
fun playerMessagesLogged(): Flowable<PlayerMessagesLoggedEvent>
Send a list of any messages that need to be delivered.
playerPropertiesChanged
Link copied to clipboard
fun playerPropertiesChanged(): Flowable<PlayerPropertiesChangedEvent>
This can be called multiple times, and can be used to set / override / remove player properties.
playersCreated
Link copied to clipboard
fun playersCreated(): Flowable<PlayersCreatedEvent>
Called whenever a player is created, or when a new agent joins and recieves a list of active players.

Sources

jvm source
Link copied to clipboard